<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:replace="dashboard/header :: header"></head>
<body>
	<div layout:fragment="content">
		<div class="container-fluid content-main">
			<div class="animated fadeIn">
				<div class="row">
					<!-- /.col-->
					<div class="col-sm-12">
						<div class="card">
							<div class="card-body">

								<form class="form-horizontal" id="addForm">

									<input type="hidden" name="formToken" th:value="${session.formToken}" />
									
									<div class="form-group row">
										<label class="col-md-2 col-form-label control-label" for="text-input">应用名称</label>
										<div class="col-md-9">
											<input class="form-control" id="text-input" type="text" value="测试应用" th:value="${ bean.applicationName}" name="applicationName" placeholder="应用名称">
										</div>
									</div>
									<div class="form-group row">
										<label class="col-md-2 col-form-label control-label" for="email-input">数据库驱动</label>
										<div class="col-md-9">
											<input class="form-control" id="email-input" type="text" value="com.mysql.jdbc.Driver" th:value="${ bean.dbDriver}" name="dbDriver" placeholder="数据库驱动">
										</div>
									</div>
									<div class="form-group row">
										<label class="col-md-2 col-form-label control-label" for="email-input">数据库连接</label>
										<div class="col-md-9">
											<input class="form-control" id="email-input" type="text" value="jdbc:mysql://localhost:3306/alinesno_cloud_base_storage??useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&useSSL=false&serverTimezone=GMT" th:value="${ bean.dbUrl}" name="dbUrl" placeholder="数据库连接">
										</div>
									</div>
									<div class="form-group row">
										<label class="col-md-2 col-form-label control-label" for="email-input">数据库用户</label>
										<div class="col-md-9">
											<input class="form-control" id="email-input" type="text" value="root" th:value="${ bean.dbUser}" name="dbUser" placeholder="数据库用户">
										</div>
									</div>
									<div class="form-group row">
										<label class="col-md-2 col-form-label control-label" for="email-input">数据库密码</label>
										<div class="col-md-9">
											<input class="form-control" id="email-input" type="text" value="admin" th:value="${ bean.dbPwd}" name="dbPwd" placeholder="数据库用户">
										</div>
									</div>
									<div class="form-group row">
										<label class="col-md-2 col-form-label control-label" for="email-input">作者名称</label>
										<div class="col-md-9">
											<input class="form-control" id="email-input" type="text" th:value="${ bean.authorName}" value="WeiXiaoJin" name="authorName" placeholder="作者名称">
										</div>
									</div>
									<div class="form-group row">
										<label class="col-md-2 col-form-label control-label" for="email-input">启动类前缀</label>
										<div class="col-md-9">
											<input class="form-control" id="email-input" type="text"   th:value="${ bean.bootPrefix}" value="Alinesno" name="bootPrefix" placeholder="启动类前缀">
										</div>
									</div>
									<div class="form-group row">
										<label class="col-md-2 col-form-label control-label" for="email-input">包名</label>
										<div class="col-md-9">
											<input class="form-control" id="email-input" type="text" value="com.alinesno.cloud" th:value="${ bean.packageName}" name="packageName" placeholder="包名">
										</div>
									</div>
									<div class="form-group row">
										<label class="col-md-2 col-form-label control-label" for="email-input">客户端路径</label>
										<div class="col-md-9">
											<input class="form-control" id="email-input" type="text" value="alinesno-cloud-base-boot"  th:value="${ bean.feignServerPath}" name="feignServerPath" placeholder="客户端路径">
										</div>
									</div>
									<div class="form-group row">
										<label class="col-md-2 col-form-label control-label" for="email-input">git仓库地址</label>
										<div class="col-md-9">
											<input class="form-control" id="email-input" type="text" value="alinesno-cloud-base-boot"  th:value="${ bean.gitRepositoryUrl}" name="gitRepositoryUrl" placeholder="git仓库地址">
										</div>
									</div>
									<div class="form-group row">
										<label class="col-md-2 col-form-label control-label" for="email-input">git用户名</label>
										<div class="col-md-9">
											<input class="form-control" id="email-input" type="text" value="alinesno-cloud-base-boot"  th:value="${ bean.gitUserName}" name="gitUserName" placeholder="git用户名">
										</div>
									</div>
									<div class="form-group row">
										<label class="col-md-2 col-form-label control-label" for="email-input">git密码</label>
										<div class="col-md-9">
											<input class="form-control" id="email-input" type="text" value="alinesno-cloud-base-boot"  th:value="${ bean.gitPassword}" name="gitPassword" placeholder="git密码">
										</div>
									</div>
								</form>

							</div>
						</div>
					</div>
					<!-- /.col-->
				</div>
			</div>
		</div>

	</div>

	<footer th:replace="dashboard/footer :: footer"></footer>

	<script type="text/javascript">

		// 保存操作
		function submitHandler() {
			$.operate.save(ctx+"portal/ucenter/source/generator" , $('#addForm').serialize());
	    }
		
	</script>

</body>
</html>
